package com.cj.eduorder.client;

import com.cj.commonutils.CourseWebVo;
import com.cj.eduorder.client.impl.EduClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author cj
 * @date 2023/4/20 17:25
 * @description
 */
@Component
@FeignClient(name="service-edu",fallback = EduClientImpl.class)
public interface EduClient {
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVo getCourseInfoOrder(@PathVariable("id") String id);
}
